#define YY_parse_h_included
/*#define YY_USE_CLASS 
*/
/*  A Bison++ parser, made from parse.ypp  */

 /* with Bison++ version bison++ Version 1.21.9-1, adapted from GNU bison by coetmeur@icdc.fr
Maintained by Magnus Ekdahl <magnus@debian.org>
  */


#line 1 "/usr/share/bison++/bison.cc"
/* -*-C-*-  Note some compilers choke on comments on `#line' lines.  */
/* Skeleton output parser for bison,
   Copyright (C) 1984, 1989, 1990 Bob Corbett and Richard Stallman

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 1, or (at your option)
   any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  

   As a special exception, when this file is copied by Bison++ into a
   Bison++ output file, you may use that output file without restriction.
   This special exception was added by the Free Software Foundation
   in version 1.24 of Bison, and has been in Bison++ since 1.21.9.  

*/

/* HEADER SECTION */
#if defined( _MSDOS ) || defined(MSDOS) || defined(__MSDOS__) 
 #define __MSDOS_AND_ALIKE
#endif

#if defined(_WINDOWS) && defined(_MSC_VER)
 #define __HAVE_NO_ALLOCA
 #define __MSDOS_AND_ALIKE
#endif

#ifndef alloca
 #if defined( __GNUC__)
  #define alloca __builtin_alloca

 #elif (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc)  || defined (__sgi)
  #include <alloca.h>

 #elif defined (__MSDOS_AND_ALIKE)
  #include <malloc.h>
  #ifndef __TURBOC__
   /* MS C runtime lib */
   #define alloca _alloca
  #endif

 #elif defined(_AIX)
  /* pragma must be put before any C/C++ instruction !! */
  #pragma alloca
  #include <malloc.h>

 #elif defined(__hpux)
  #ifdef __cplusplus
   extern "C" {
     void *alloca (unsigned int);
   };
  #else /* not __cplusplus */
   void *alloca ();
  #endif /* not __cplusplus */

 #endif /* not _AIX  not MSDOS, or __TURBOC__ or _AIX, not sparc.  */
#endif /* alloca not defined.  */

#ifdef c_plusplus
 #ifndef __cplusplus
  #define __cplusplus
 #endif
#endif

#ifdef __cplusplus
 #ifndef YY_USE_CLASS
/*#warning "For C++ its recomended to use bison++, otherwise classes won't be generated"*/
 #endif
#else
 #ifndef __STDC__
  #define const
 #endif
 #ifdef YY_USE_CLASS
  #error "This is a C++ header generated by bison++, please use a C++ compiler!"
 #endif
#endif

#include <stdio.h>
#define YYBISON 1  

 #line 88 "/usr/share/bison++/bison.cc"
#line 1 "parse.ypp"

/*           PL 1/2
  this is compiler for a very little language 
  called pl1/2(pronounced pl-a-half).
  this is a syntax checker version
*/

#define V_UINT8 0
#define V_UINT16 1
#define V_UINT32 2
#define V_UINT64 3
#define V_INT8 4
#define V_INT16 5
#define V_INT32 6
#define V_INT64 7
#define V_DOUBLE 8

#include <stdio.h>
#include <vector>
#include <iostream>
#include <string>
#include "varlist.h"
#include "astnode.h"
using namespace std;
extern int fatalerror;  
extern void fatal(char *);
extern int yylex(void);
extern  int yyerror(char *);


extern VarList vars;
extern Expression * exprp;
extern Program app;
extern int line_count;

#line 37 "parse.ypp"
typedef union {
    int  			integerVal;
    double 			doubleVal;
    const char*			charVal;
    std::string*		stringVal;
    Expression*		        ast;
} yy_parse_stype;
#define YY_parse_STYPE yy_parse_stype
#ifndef YY_USE_CLASS
#define YYSTYPE yy_parse_stype
#endif

#line 88 "/usr/share/bison++/bison.cc"
/* %{ and %header{ and %union, during decl */
#define YY_parse_BISON 1

#ifndef YY_parse_COMPATIBILITY
 #ifndef YY_USE_CLASS
  #define  YY_parse_COMPATIBILITY 1
 #else
  #define  YY_parse_COMPATIBILITY 0
 #endif
#endif

#if YY_parse_COMPATIBILITY != 0
 /* backward compatibility */
 #ifdef YYLTYPE
  #ifndef YY_parse_LTYPE
   #define YY_parse_LTYPE YYLTYPE
  #endif
 #endif
/* Testing alternative bison solution
   /#ifdef YYSTYPE*/
#ifndef YY_parse_STYPE 
   #define YY_parse_STYPE YYSTYPE
#endif
/*#endif*/
 #ifdef YYDEBUG
  #ifndef YY_parse_DEBUG
   #define  YY_parse_DEBUG YYDEBUG
  #endif
 #endif
 
 /* use goto to be compatible */
 #ifndef YY_parse_USE_GOTO
  #define YY_parse_USE_GOTO 1
 #endif
#endif

/* use no goto to be clean in C++ */
#ifndef YY_parse_USE_GOTO
 #define YY_parse_USE_GOTO 0
#endif

#ifndef YY_parse_PURE

 #line 130 "/usr/share/bison++/bison.cc"

#line 130 "/usr/share/bison++/bison.cc"
/*  YY_parse_PURE */
#endif

/* section apres lecture def, avant lecture grammaire S2 */

 #line 134 "/usr/share/bison++/bison.cc"

#line 134 "/usr/share/bison++/bison.cc"
/* prefix */
#ifndef YY_parse_DEBUG

 #line 136 "/usr/share/bison++/bison.cc"

#line 136 "/usr/share/bison++/bison.cc"
/* YY_parse_DEBUG */
#endif


#ifndef YY_parse_LSP_NEEDED

 #line 141 "/usr/share/bison++/bison.cc"

#line 141 "/usr/share/bison++/bison.cc"
 /* YY_parse_LSP_NEEDED*/
#endif



/* DEFAULT LTYPE*/
#ifdef YY_parse_LSP_NEEDED
#ifndef YY_parse_LTYPE
#ifndef BISON_YYLTYPE_ISDECLARED
#define BISON_YYLTYPE_ISDECLARED
typedef
  struct yyltype
    {
      int timestamp;
      int first_line;
      int first_column;
      int last_line;
      int last_column;
      char *text;
   }
  yyltype;

#endif
#define YY_parse_LTYPE yyltype
#endif
#endif
/* DEFAULT STYPE*/
      /* We used to use `unsigned long' as YY_parse_STYPE on MSDOS,
	 but it seems better to be consistent.
	 Most programs should declare their own type anyway.  */

#ifndef YY_parse_STYPE
#define YY_parse_STYPE int
#endif
/* DEFAULT MISCELANEOUS */
#ifndef YY_parse_PARSE
#define YY_parse_PARSE yyparse
#endif
#ifndef YY_parse_LEX
#define YY_parse_LEX yylex
#endif
#ifndef YY_parse_LVAL
#define YY_parse_LVAL yylval
#endif
#ifndef YY_parse_LLOC
#define YY_parse_LLOC yylloc
#endif
#ifndef YY_parse_CHAR
#define YY_parse_CHAR yychar
#endif
#ifndef YY_parse_NERRS
#define YY_parse_NERRS yynerrs
#endif
#ifndef YY_parse_DEBUG_FLAG
#define YY_parse_DEBUG_FLAG yydebug
#endif
#ifndef YY_parse_ERROR
#define YY_parse_ERROR yyerror
#endif

#ifndef YY_parse_PARSE_PARAM
 #ifndef YY_USE_CLASS
  #ifdef YYPARSE_PARAM
   #define YY_parse_PARSE_PARAM void* YYPARSE_PARAM 
  #else
   #ifndef __STDC__
    #ifndef __cplusplus
     #define YY_parse_PARSE_PARAM
    #endif
   #endif
  #endif
 #endif
 #ifndef YY_parse_PARSE_PARAM
  #define YY_parse_PARSE_PARAM void
 #endif
#endif

#if YY_parse_COMPATIBILITY != 0
/* backward compatibility */
#ifdef YY_parse_LTYPE
#ifndef YYLTYPE
#define YYLTYPE YY_parse_LTYPE
#else
/* WARNING obsolete !!! user defined YYLTYPE not reported into generated header */
#endif
#endif

/* Removed due to bison compabilityproblems
/#ifndef YYSTYPE
/#define YYSTYPE YY_parse_STYPE
/#else*/
/* WARNING obsolete !!! user defined YYSTYPE not reported into generated header */
/*#endif*/

#ifdef YY_parse_PURE
#  ifndef YYPURE
#    define YYPURE YY_parse_PURE
#  endif
#endif

#ifdef YY_parse_DEBUG
#  ifndef YYDEBUG
#    define YYDEBUG YY_parse_DEBUG 
#  endif
#endif

#ifndef YY_parse_ERROR_VERBOSE
 #ifdef YYERROR_VERBOSE
  #define YY_parse_ERROR_VERBOSE YYERROR_VERBOSE
 #endif
#endif

#ifndef YY_parse_LSP_NEEDED
#  ifdef YYLSP_NEEDED
#    define YY_parse_LSP_NEEDED YYLSP_NEEDED
#  endif
#endif

#endif

#ifndef YY_USE_CLASS
/* TOKEN C */

 #line 263 "/usr/share/bison++/bison.cc"
#define	OPARANT	258
#define	EPARANT	259
#define	OCBRACE	260
#define	ECBRACE	261
#define	COMMA	262
#define	EQUAL	263
#define	SEP	264
#define	VARS	265
#define	PLUS	266
#define	MINUS	267
#define	MULTIPLY	268
#define	DIVIDEX	269
#define	UINT8	270
#define	UINT16	271
#define	UINT32	272
#define	UINT64	273
#define	INT8	274
#define	INT16	275
#define	INT32	276
#define	INT64	277
#define	FLOAT	278
#define	INTEGER	279
#define	WORD	280
#define	FILENAME	281
#define	QUOTE	282
#define	OBRACE	283
#define	EBRACE	284
#define	SEMICOLON	285
#define	ZONETOK	286
#define	FILETOK	287
#define	STRING	288
#define	IF	289
#define	WHILE	290
#define	ELSE	291
#define	ELSEIF	292
#define	FOR	293
#define	DOUBLE	294


#line 263 "/usr/share/bison++/bison.cc"
 /* #defines tokens */
#else
/* CLASS */
#ifndef YY_parse_CLASS
#define YY_parse_CLASS parse
#endif
#ifndef YY_parse_INHERIT
#define YY_parse_INHERIT
#endif
#ifndef YY_parse_MEMBERS
#define YY_parse_MEMBERS 
#endif
#ifndef YY_parse_LEX_BODY
#define YY_parse_LEX_BODY  
#endif
#ifndef YY_parse_ERROR_BODY
#define YY_parse_ERROR_BODY  
#endif
#ifndef YY_parse_CONSTRUCTOR_PARAM
#define YY_parse_CONSTRUCTOR_PARAM
#endif
#ifndef YY_parse_CONSTRUCTOR_CODE
#define YY_parse_CONSTRUCTOR_CODE
#endif
#ifndef YY_parse_CONSTRUCTOR_INIT
#define YY_parse_CONSTRUCTOR_INIT
#endif
/* choose between enum and const */
#ifndef YY_parse_USE_CONST_TOKEN
#define YY_parse_USE_CONST_TOKEN 0
/* yes enum is more compatible with flex,  */
/* so by default we use it */ 
#endif
#if YY_parse_USE_CONST_TOKEN != 0
#ifndef YY_parse_ENUM_TOKEN
#define YY_parse_ENUM_TOKEN yy_parse_enum_token
#endif
#endif

class YY_parse_CLASS YY_parse_INHERIT
{
public: 
#if YY_parse_USE_CONST_TOKEN != 0
/* static const int token ... */

 #line 307 "/usr/share/bison++/bison.cc"
static const int OPARANT;
static const int EPARANT;
static const int OCBRACE;
static const int ECBRACE;
static const int COMMA;
static const int EQUAL;
static const int SEP;
static const int VARS;
static const int PLUS;
static const int MINUS;
static const int MULTIPLY;
static const int DIVIDEX;
static const int UINT8;
static const int UINT16;
static const int UINT32;
static const int UINT64;
static const int INT8;
static const int INT16;
static const int INT32;
static const int INT64;
static const int FLOAT;
static const int INTEGER;
static const int WORD;
static const int FILENAME;
static const int QUOTE;
static const int OBRACE;
static const int EBRACE;
static const int SEMICOLON;
static const int ZONETOK;
static const int FILETOK;
static const int STRING;
static const int IF;
static const int WHILE;
static const int ELSE;
static const int ELSEIF;
static const int FOR;
static const int DOUBLE;


#line 307 "/usr/share/bison++/bison.cc"
 /* decl const */
#else
enum YY_parse_ENUM_TOKEN { YY_parse_NULL_TOKEN=0

 #line 310 "/usr/share/bison++/bison.cc"
	,OPARANT=258
	,EPARANT=259
	,OCBRACE=260
	,ECBRACE=261
	,COMMA=262
	,EQUAL=263
	,SEP=264
	,VARS=265
	,PLUS=266
	,MINUS=267
	,MULTIPLY=268
	,DIVIDEX=269
	,UINT8=270
	,UINT16=271
	,UINT32=272
	,UINT64=273
	,INT8=274
	,INT16=275
	,INT32=276
	,INT64=277
	,FLOAT=278
	,INTEGER=279
	,WORD=280
	,FILENAME=281
	,QUOTE=282
	,OBRACE=283
	,EBRACE=284
	,SEMICOLON=285
	,ZONETOK=286
	,FILETOK=287
	,STRING=288
	,IF=289
	,WHILE=290
	,ELSE=291
	,ELSEIF=292
	,FOR=293
	,DOUBLE=294


#line 310 "/usr/share/bison++/bison.cc"
 /* enum token */
     }; /* end of enum declaration */
#endif
public:
 int YY_parse_PARSE (YY_parse_PARSE_PARAM);
 virtual void YY_parse_ERROR(char *msg) YY_parse_ERROR_BODY;
#ifdef YY_parse_PURE
#ifdef YY_parse_LSP_NEEDED
 virtual int  YY_parse_LEX (YY_parse_STYPE *YY_parse_LVAL,YY_parse_LTYPE *YY_parse_LLOC) YY_parse_LEX_BODY;
#else
 virtual int  YY_parse_LEX (YY_parse_STYPE *YY_parse_LVAL) YY_parse_LEX_BODY;
#endif
#else
 virtual int YY_parse_LEX() YY_parse_LEX_BODY;
 YY_parse_STYPE YY_parse_LVAL;
#ifdef YY_parse_LSP_NEEDED
 YY_parse_LTYPE YY_parse_LLOC;
#endif
 int   YY_parse_NERRS;
 int    YY_parse_CHAR;
#endif
#if YY_parse_DEBUG != 0
 int YY_parse_DEBUG_FLAG;   /*  nonzero means print parse trace     */
#endif
public:
 YY_parse_CLASS(YY_parse_CONSTRUCTOR_PARAM);
public:
 YY_parse_MEMBERS 
};
/* other declare folow */
#if YY_parse_USE_CONST_TOKEN != 0

 #line 341 "/usr/share/bison++/bison.cc"
const int YY_parse_CLASS::OPARANT=258;
const int YY_parse_CLASS::EPARANT=259;
const int YY_parse_CLASS::OCBRACE=260;
const int YY_parse_CLASS::ECBRACE=261;
const int YY_parse_CLASS::COMMA=262;
const int YY_parse_CLASS::EQUAL=263;
const int YY_parse_CLASS::SEP=264;
const int YY_parse_CLASS::VARS=265;
const int YY_parse_CLASS::PLUS=266;
const int YY_parse_CLASS::MINUS=267;
const int YY_parse_CLASS::MULTIPLY=268;
const int YY_parse_CLASS::DIVIDEX=269;
const int YY_parse_CLASS::UINT8=270;
const int YY_parse_CLASS::UINT16=271;
const int YY_parse_CLASS::UINT32=272;
const int YY_parse_CLASS::UINT64=273;
const int YY_parse_CLASS::INT8=274;
const int YY_parse_CLASS::INT16=275;
const int YY_parse_CLASS::INT32=276;
const int YY_parse_CLASS::INT64=277;
const int YY_parse_CLASS::FLOAT=278;
const int YY_parse_CLASS::INTEGER=279;
const int YY_parse_CLASS::WORD=280;
const int YY_parse_CLASS::FILENAME=281;
const int YY_parse_CLASS::QUOTE=282;
const int YY_parse_CLASS::OBRACE=283;
const int YY_parse_CLASS::EBRACE=284;
const int YY_parse_CLASS::SEMICOLON=285;
const int YY_parse_CLASS::ZONETOK=286;
const int YY_parse_CLASS::FILETOK=287;
const int YY_parse_CLASS::STRING=288;
const int YY_parse_CLASS::IF=289;
const int YY_parse_CLASS::WHILE=290;
const int YY_parse_CLASS::ELSE=291;
const int YY_parse_CLASS::ELSEIF=292;
const int YY_parse_CLASS::FOR=293;
const int YY_parse_CLASS::DOUBLE=294;


#line 341 "/usr/share/bison++/bison.cc"
 /* const YY_parse_CLASS::token */
#endif
/*apres const  */
YY_parse_CLASS::YY_parse_CLASS(YY_parse_CONSTRUCTOR_PARAM) YY_parse_CONSTRUCTOR_INIT
{
#if YY_parse_DEBUG != 0
YY_parse_DEBUG_FLAG=0;
#endif
YY_parse_CONSTRUCTOR_CODE;
};
#endif

 #line 352 "/usr/share/bison++/bison.cc"


#define	YYFINAL		100
#define	YYFLAG		-32768
#define	YYNTBASE	40

#define YYTRANSLATE(x) ((unsigned)(x) <= 294 ? yytranslate[x] : 52)

static const char yytranslate[] = {     0,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
     2,     2,     2,     2,     2,     1,     2,     3,     4,     5,
     6,     7,     8,     9,    10,    11,    12,    13,    14,    15,
    16,    17,    18,    19,    20,    21,    22,    23,    24,    25,
    26,    27,    28,    29,    30,    31,    32,    33,    34,    35,
    36,    37,    38,    39
};

#if YY_parse_DEBUG != 0
static const short yyprhs[] = {     0,
     0,     1,     5,     7,    14,    15,    19,    22,    24,    26,
    28,    30,    32,    34,    36,    38,    40,    44,    48,    49,
    53,    57,    61,    65,    69,    73,    78,    86,    94,    96,
    98,   100,   107,   111,   114,   117,   128,   139,   146,   153,
   160,   163,   164,   168,   171,   172,   176,   179,   180,   184
};

static const short yyrhs[] = {    -1,
    40,    41,    30,     0,    42,     0,    44,    25,     3,    43,
     4,    45,     0,     0,    43,    25,     7,     0,    43,    25,
     0,    15,     0,    16,     0,    17,     0,    18,     0,    19,
     0,    20,     0,    21,     0,    22,     0,    23,     0,    28,
    47,    29,     0,    27,    25,    27,     0,     0,    47,    49,
    30,     0,    48,    11,    48,     0,    48,    12,    48,     0,
    48,    14,    48,     0,    48,    13,    48,     0,     3,    48,
     4,     0,    25,     3,    48,     4,     0,     5,    24,     9,
    24,     9,    24,     6,     0,     5,    39,     9,    39,     9,
    39,     6,     0,    25,     0,    39,     0,    24,     0,    25,
     5,    24,     6,     8,    48,     0,    25,     8,    48,     0,
    34,    45,     0,    44,    25,     0,    44,    25,     8,     5,
    24,     9,    24,     9,    24,     6,     0,    44,    25,     8,
     5,    39,     9,    39,     9,    39,     6,     0,    44,    25,
     8,    28,    50,    29,     0,    44,    25,     8,    28,    51,
    29,     0,    44,    25,     8,    28,    33,    29,     0,    32,
    46,     0,     0,    50,    24,     7,     0,    50,    24,     0,
     0,    51,    39,     7,     0,    51,    39,     0,     0,     0,
    24,     7,     0,     0,    24,     0
};

#endif

#if (YY_parse_DEBUG != 0) || defined(YY_parse_ERROR_VERBOSE) 
static const short yyrline[] = { 0,
    64,    65,    70,    74,    89,    90,    91,    94,    95,    96,
    97,    98,    99,   100,   101,   102,   105,   108,   116,   117,
   122,   126,   130,   134,   138,   142,   146,   153,   158,   162,
   167,   173,   189,   208,   228,   238,   248,   258,   268,   278,
   288,   296,   297,   298,   301,   302,   303,   305,   306,   307
};

static const char * const yytname[] = {   "$","error","$illegal.","OPARANT",
"EPARANT","OCBRACE","ECBRACE","COMMA","EQUAL","SEP","VARS","PLUS","MINUS","MULTIPLY",
"DIVIDEX","UINT8","UINT16","UINT32","UINT64","INT8","INT16","INT32","INT64",
"FLOAT","INTEGER","WORD","FILENAME","QUOTE","OBRACE","EBRACE","SEMICOLON","ZONETOK",
"FILETOK","STRING","IF","WHILE","ELSE","ELSEIF","FOR","DOUBLE","commands","command",
"zone_set","arguments","var_type","zonecontent","quotedname","zonestatements",
"expr","zonestatement","INTSEQ","DOUBLESEQ","\033"
};
#endif

static const short yyr1[] = {     0,
    40,    40,    41,    42,    43,    43,    43,    44,    44,    44,
    44,    44,    44,    44,    44,    44,    45,    46,    47,    47,
    48,    48,    48,    48,    48,    48,    48,    48,    48,    48,
    48,    49,    49,    49,    49,    49,    49,    49,    49,    49,
    49,    50,    50,    50,    51,    51,    51,    -1,    -1,    -1
};

static const short yyr2[] = {     0,
     0,     3,     1,     6,     0,     3,     2,     1,     1,     1,
     1,     1,     1,     1,     1,     1,     3,     3,     0,     3,
     3,     3,     3,     3,     3,     4,     7,     7,     1,     1,
     1,     6,     3,     2,     2,    10,    10,     6,     6,     6,
     2,     0,     3,     2,     0,     3,     2,     0,     3,     2
};

static const short yydefact[] = {     1,
     0,     8,     9,    10,    11,    12,    13,    14,    15,    16,
     0,     3,     0,     2,     0,     5,     0,     0,     7,    19,
     4,     6,     0,     0,    17,     0,     0,     0,     0,     0,
     0,     0,    41,    34,    35,    20,     0,     0,     0,    31,
    29,    30,    33,     0,     0,     0,     0,     0,     0,     0,
     0,     0,     0,     0,    18,     0,    42,     0,    25,     0,
     0,     0,    21,    22,    24,    23,     0,     0,     0,     0,
     0,    32,     0,     0,    26,     0,     0,    40,    44,    38,
    39,    47,     0,     0,     0,     0,    43,    46,     0,     0,
     0,     0,    27,    28,     0,     0,    36,    37,     0,     0
};

static const short yydefgoto[] = {     1,
    11,    12,    17,    13,    21,    33,    23,    43,    29,    70,
    71
};

static const short yypact[] = {-32768,
     8,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,
   -24,-32768,   -15,-32768,    16,-32768,     9,   -13,    36,-32768,
-32768,-32768,    39,    12,-32768,    17,   -13,    10,    20,    27,
    -3,    38,-32768,-32768,    44,-32768,    59,    -3,   -23,-32768,
    66,-32768,    26,    43,     4,    58,    63,    69,    74,    -3,
    -3,    -3,    -3,    -3,-32768,   -21,   -28,    -3,-32768,    60,
    46,    68,    28,    28,-32768,-32768,    77,    78,    61,   -17,
   -25,    26,    79,    80,-32768,    67,    53,-32768,    86,-32768,
-32768,    87,    71,    57,    88,    89,-32768,-32768,    93,    94,
    81,    62,-32768,-32768,    96,    97,-32768,-32768,   104,-32768
};

static const short yypgoto[] = {-32768,
-32768,-32768,-32768,    83,    82,-32768,-32768,    -5,-32768,-32768,
-32768
};


#define	YYLAST		109


static const short yytable[] = {    38,
    48,    39,    67,    81,    69,    14,    79,    99,    56,    15,
   -45,    80,    18,    82,    20,    49,    30,    68,    16,    31,
    40,    41,     2,     3,     4,     5,     6,     7,     8,     9,
    10,    57,    47,    19,    35,    42,    51,    52,    53,    54,
    53,    54,    22,    32,    62,    63,    64,    65,    66,    36,
    37,    45,    72,     2,     3,     4,     5,     6,     7,     8,
     9,    10,    44,    24,    46,    58,    59,    25,    50,    55,
    26,    75,    27,    51,    52,    53,    54,    60,    51,    52,
    53,    54,    61,    73,    74,    76,    77,    83,    84,    78,
    85,    86,    87,    88,    89,    90,    91,    92,    93,    94,
    96,    97,    98,   100,    95,    28,     0,     0,    34
};

static const short yycheck[] = {     3,
    24,     5,    24,    29,    33,    30,    24,     0,     5,    25,
    39,    29,     4,    39,    28,    39,     5,    39,     3,     8,
    24,    25,    15,    16,    17,    18,    19,    20,    21,    22,
    23,    28,    38,    25,    25,    39,    11,    12,    13,    14,
    13,    14,     7,    27,    50,    51,    52,    53,    54,    30,
    24,     8,    58,    15,    16,    17,    18,    19,    20,    21,
    22,    23,    25,    25,     6,     8,     4,    29,     3,    27,
    32,     4,    34,    11,    12,    13,    14,     9,    11,    12,
    13,    14,     9,    24,    39,     9,     9,     9,     9,    29,
    24,    39,     7,     7,    24,    39,     9,     9,     6,     6,
    39,     6,     6,     0,    24,    23,    -1,    -1,    27
};

#line 352 "/usr/share/bison++/bison.cc"
 /* fattrs + tables */

/* parser code folow  */


/* This is the parser code that is written into each bison parser
  when the %semantic_parser declaration is not specified in the grammar.
  It was written by Richard Stallman by simplifying the hairy parser
  used when %semantic_parser is specified.  */

/* Note: dollar marks section change
   the next  is replaced by the list of actions, each action
   as one case of the switch.  */ 

#if YY_parse_USE_GOTO != 0
/* 
 SUPRESSION OF GOTO : on some C++ compiler (sun c++)
  the goto is strictly forbidden if any constructor/destructor
  is used in the whole function (very stupid isn't it ?)
 so goto are to be replaced with a 'while/switch/case construct'
 here are the macro to keep some apparent compatibility
*/
#define YYGOTO(lb) {yy_gotostate=lb;continue;}
#define YYBEGINGOTO  enum yy_labels yy_gotostate=yygotostart; \
                     for(;;) switch(yy_gotostate) { case yygotostart: {
#define YYLABEL(lb) } case lb: {
#define YYENDGOTO } } 
#define YYBEGINDECLARELABEL enum yy_labels {yygotostart
#define YYDECLARELABEL(lb) ,lb
#define YYENDDECLARELABEL  };
#else
/* macro to keep goto */
#define YYGOTO(lb) goto lb
#define YYBEGINGOTO 
#define YYLABEL(lb) lb:
#define YYENDGOTO
#define YYBEGINDECLARELABEL 
#define YYDECLARELABEL(lb)
#define YYENDDECLARELABEL 
#endif
/* LABEL DECLARATION */
YYBEGINDECLARELABEL
  YYDECLARELABEL(yynewstate)
  YYDECLARELABEL(yybackup)
/* YYDECLARELABEL(yyresume) */
  YYDECLARELABEL(yydefault)
  YYDECLARELABEL(yyreduce)
  YYDECLARELABEL(yyerrlab)   /* here on detecting error */
  YYDECLARELABEL(yyerrlab1)   /* here on error raised explicitly by an action */
  YYDECLARELABEL(yyerrdefault)  /* current state does not do anything special for the error token. */
  YYDECLARELABEL(yyerrpop)   /* pop the current state because it cannot handle the error token */
  YYDECLARELABEL(yyerrhandle)  
YYENDDECLARELABEL
/* ALLOCA SIMULATION */
/* __HAVE_NO_ALLOCA */
#ifdef __HAVE_NO_ALLOCA
int __alloca_free_ptr(char *ptr,char *ref)
{if(ptr!=ref) free(ptr);
 return 0;}

#define __ALLOCA_alloca(size) malloc(size)
#define __ALLOCA_free(ptr,ref) __alloca_free_ptr((char *)ptr,(char *)ref)

#ifdef YY_parse_LSP_NEEDED
#define __ALLOCA_return(num) \
            do { return( __ALLOCA_free(yyss,yyssa)+\
		    __ALLOCA_free(yyvs,yyvsa)+\
		    __ALLOCA_free(yyls,yylsa)+\
		   (num)); } while(0)
#else
#define __ALLOCA_return(num) \
            do { return( __ALLOCA_free(yyss,yyssa)+\
		    __ALLOCA_free(yyvs,yyvsa)+\
		   (num)); } while(0)
#endif
#else
#define __ALLOCA_return(num) do { return(num); } while(0)
#define __ALLOCA_alloca(size) alloca(size)
#define __ALLOCA_free(ptr,ref) 
#endif

/* ENDALLOCA SIMULATION */

#define yyerrok         (yyerrstatus = 0)
#define yyclearin       (YY_parse_CHAR = YYEMPTY)
#define YYEMPTY         -2
#define YYEOF           0
#define YYACCEPT        __ALLOCA_return(0)
#define YYABORT         __ALLOCA_return(1)
#define YYERROR         YYGOTO(yyerrlab1)
/* Like YYERROR except do call yyerror.
   This remains here temporarily to ease the
   transition to the new meaning of YYERROR, for GCC.
   Once GCC version 2 has supplanted version 1, this can go.  */
#define YYFAIL          YYGOTO(yyerrlab)
#define YYRECOVERING()  (!!yyerrstatus)
#define YYBACKUP(token, value) \
do                                                              \
  if (YY_parse_CHAR == YYEMPTY && yylen == 1)                               \
    { YY_parse_CHAR = (token), YY_parse_LVAL = (value);                 \
      yychar1 = YYTRANSLATE (YY_parse_CHAR);                                \
      YYPOPSTACK;                                               \
      YYGOTO(yybackup);                                            \
    }                                                           \
  else                                                          \
    { YY_parse_ERROR ("syntax error: cannot back up"); YYERROR; }   \
while (0)

#define YYTERROR        1
#define YYERRCODE       256

#ifndef YY_parse_PURE
/* UNPURE */
#define YYLEX           YY_parse_LEX()
#ifndef YY_USE_CLASS
/* If nonreentrant, and not class , generate the variables here */
int     YY_parse_CHAR;                      /*  the lookahead symbol        */
YY_parse_STYPE      YY_parse_LVAL;              /*  the semantic value of the */
				/*  lookahead symbol    */
int YY_parse_NERRS;                 /*  number of parse errors so far */
#ifdef YY_parse_LSP_NEEDED
YY_parse_LTYPE YY_parse_LLOC;   /*  location data for the lookahead     */
			/*  symbol                              */
#endif
#endif


#else
/* PURE */
#ifdef YY_parse_LSP_NEEDED
#define YYLEX           YY_parse_LEX(&YY_parse_LVAL, &YY_parse_LLOC)
#else
#define YYLEX           YY_parse_LEX(&YY_parse_LVAL)
#endif
#endif
#ifndef YY_USE_CLASS
#if YY_parse_DEBUG != 0
int YY_parse_DEBUG_FLAG;                    /*  nonzero means print parse trace     */
/* Since this is uninitialized, it does not stop multiple parsers
   from coexisting.  */
#endif
#endif



/*  YYINITDEPTH indicates the initial size of the parser's stacks       */

#ifndef YYINITDEPTH
#define YYINITDEPTH 200
#endif

/*  YYMAXDEPTH is the maximum size the stacks can grow to
    (effective only if the built-in stack extension method is used).  */

#if YYMAXDEPTH == 0
#undef YYMAXDEPTH
#endif

#ifndef YYMAXDEPTH
#define YYMAXDEPTH 10000
#endif


#if __GNUC__ > 1                /* GNU C and GNU C++ define this.  */
#define __yy_bcopy(FROM,TO,COUNT)       __builtin_memcpy(TO,FROM,COUNT)
#else                           /* not GNU C or C++ */

/* This is the most reliable way to avoid incompatibilities
   in available built-in functions on various systems.  */

#ifdef __cplusplus
static void __yy_bcopy (char *from, char *to, int count)
#else
#ifdef __STDC__
static void __yy_bcopy (char *from, char *to, int count)
#else
static void __yy_bcopy (from, to, count)
     char *from;
     char *to;
     int count;
#endif
#endif
{
  register char *f = from;
  register char *t = to;
  register int i = count;

  while (i-- > 0)
    *t++ = *f++;
}
#endif


int
#ifdef YY_USE_CLASS
 YY_parse_CLASS::
#endif
     YY_parse_PARSE(YY_parse_PARSE_PARAM)
#ifndef __STDC__
#ifndef __cplusplus
#ifndef YY_USE_CLASS
/* parameter definition without protypes */
YY_parse_PARSE_PARAM_DEF
#endif
#endif
#endif
{
  register int yystate;
  register int yyn;
  register short *yyssp;
  register YY_parse_STYPE *yyvsp;
  int yyerrstatus;      /*  number of tokens to shift before error messages enabled */
  int yychar1=0;          /*  lookahead token as an internal (translated) token number */

  short yyssa[YYINITDEPTH];     /*  the state stack                     */
  YY_parse_STYPE yyvsa[YYINITDEPTH];        /*  the semantic value stack            */

  short *yyss = yyssa;          /*  refer to the stacks thru separate pointers */
  YY_parse_STYPE *yyvs = yyvsa;     /*  to allow yyoverflow to reallocate them elsewhere */

#ifdef YY_parse_LSP_NEEDED
  YY_parse_LTYPE yylsa[YYINITDEPTH];        /*  the location stack                  */
  YY_parse_LTYPE *yyls = yylsa;
  YY_parse_LTYPE *yylsp;

#define YYPOPSTACK   (yyvsp--, yyssp--, yylsp--)
#else
#define YYPOPSTACK   (yyvsp--, yyssp--)
#endif

  int yystacksize = YYINITDEPTH;

#ifdef YY_parse_PURE
  int YY_parse_CHAR;
  YY_parse_STYPE YY_parse_LVAL;
  int YY_parse_NERRS;
#ifdef YY_parse_LSP_NEEDED
  YY_parse_LTYPE YY_parse_LLOC;
#endif
#endif

  YY_parse_STYPE yyval;             /*  the variable used to return         */
				/*  semantic values from the action     */
				/*  routines                            */

  int yylen;
/* start loop, in which YYGOTO may be used. */
YYBEGINGOTO

#if YY_parse_DEBUG != 0
  if (YY_parse_DEBUG_FLAG)
    fprintf(stderr, "Starting parse\n");
#endif
  yystate = 0;
  yyerrstatus = 0;
  YY_parse_NERRS = 0;
  YY_parse_CHAR = YYEMPTY;          /* Cause a token to be read.  */

  /* Initialize stack pointers.
     Waste one element of value and location stack
     so that they stay on the same level as the state stack.
     The wasted elements are never initialized.  */

  yyssp = yyss - 1;
  yyvsp = yyvs;
#ifdef YY_parse_LSP_NEEDED
  yylsp = yyls;
#endif

/* Push a new state, which is found in  yystate  .  */
/* In all cases, when you get here, the value and location stacks
   have just been pushed. so pushing a state here evens the stacks.  */
YYLABEL(yynewstate)

  *++yyssp = yystate;

  if (yyssp >= yyss + yystacksize - 1)
    {
      /* Give user a chance to reallocate the stack */
      /* Use copies of these so that the &'s don't force the real ones into memory. */
      YY_parse_STYPE *yyvs1 = yyvs;
      short *yyss1 = yyss;
#ifdef YY_parse_LSP_NEEDED
      YY_parse_LTYPE *yyls1 = yyls;
#endif

      /* Get the current used size of the three stacks, in elements.  */
      int size = yyssp - yyss + 1;

#ifdef yyoverflow
      /* Each stack pointer address is followed by the size of
	 the data in use in that stack, in bytes.  */
#ifdef YY_parse_LSP_NEEDED
      /* This used to be a conditional around just the two extra args,
	 but that might be undefined if yyoverflow is a macro.  */
      yyoverflow("parser stack overflow",
		 &yyss1, size * sizeof (*yyssp),
		 &yyvs1, size * sizeof (*yyvsp),
		 &yyls1, size * sizeof (*yylsp),
		 &yystacksize);
#else
      yyoverflow("parser stack overflow",
		 &yyss1, size * sizeof (*yyssp),
		 &yyvs1, size * sizeof (*yyvsp),
		 &yystacksize);
#endif

      yyss = yyss1; yyvs = yyvs1;
#ifdef YY_parse_LSP_NEEDED
      yyls = yyls1;
#endif
#else /* no yyoverflow */
      /* Extend the stack our own way.  */
      if (yystacksize >= YYMAXDEPTH)
	{
	  YY_parse_ERROR("parser stack overflow");
	  __ALLOCA_return(2);
	}
      yystacksize *= 2;
      if (yystacksize > YYMAXDEPTH)
	yystacksize = YYMAXDEPTH;
      yyss = (short *) __ALLOCA_alloca (yystacksize * sizeof (*yyssp));
      __yy_bcopy ((char *)yyss1, (char *)yyss, size * sizeof (*yyssp));
      __ALLOCA_free(yyss1,yyssa);
      yyvs = (YY_parse_STYPE *) __ALLOCA_alloca (yystacksize * sizeof (*yyvsp));
      __yy_bcopy ((char *)yyvs1, (char *)yyvs, size * sizeof (*yyvsp));
      __ALLOCA_free(yyvs1,yyvsa);
#ifdef YY_parse_LSP_NEEDED
      yyls = (YY_parse_LTYPE *) __ALLOCA_alloca (yystacksize * sizeof (*yylsp));
      __yy_bcopy ((char *)yyls1, (char *)yyls, size * sizeof (*yylsp));
      __ALLOCA_free(yyls1,yylsa);
#endif
#endif /* no yyoverflow */

      yyssp = yyss + size - 1;
      yyvsp = yyvs + size - 1;
#ifdef YY_parse_LSP_NEEDED
      yylsp = yyls + size - 1;
#endif

#if YY_parse_DEBUG != 0
      if (YY_parse_DEBUG_FLAG)
	fprintf(stderr, "Stack size increased to %d\n", yystacksize);
#endif

      if (yyssp >= yyss + yystacksize - 1)
	YYABORT;
    }

#if YY_parse_DEBUG != 0
  if (YY_parse_DEBUG_FLAG)
    fprintf(stderr, "Entering state %d\n", yystate);
#endif

  YYGOTO(yybackup);
YYLABEL(yybackup)

/* Do appropriate processing given the current state.  */
/* Read a lookahead token if we need one and don't already have one.  */
/* YYLABEL(yyresume) */

  /* First try to decide what to do without reference to lookahead token.  */

  yyn = yypact[yystate];
  if (yyn == YYFLAG)
    YYGOTO(yydefault);

  /* Not known => get a lookahead token if don't already have one.  */

  /* yychar is either YYEMPTY or YYEOF
     or a valid token in external form.  */

  if (YY_parse_CHAR == YYEMPTY)
    {
#if YY_parse_DEBUG != 0
      if (YY_parse_DEBUG_FLAG)
	fprintf(stderr, "Reading a token: ");
#endif
      YY_parse_CHAR = YYLEX;
    }

  /* Convert token to internal form (in yychar1) for indexing tables with */

  if (YY_parse_CHAR <= 0)           /* This means end of input. */
    {
      yychar1 = 0;
      YY_parse_CHAR = YYEOF;                /* Don't call YYLEX any more */

#if YY_parse_DEBUG != 0
      if (YY_parse_DEBUG_FLAG)
	fprintf(stderr, "Now at end of input.\n");
#endif
    }
  else
    {
      yychar1 = YYTRANSLATE(YY_parse_CHAR);

#if YY_parse_DEBUG != 0
      if (YY_parse_DEBUG_FLAG)
	{
	  fprintf (stderr, "Next token is %d (%s", YY_parse_CHAR, yytname[yychar1]);
	  /* Give the individual parser a way to print the precise meaning
	     of a token, for further debugging info.  */
#ifdef YYPRINT
	  YYPRINT (stderr, YY_parse_CHAR, YY_parse_LVAL);
#endif
	  fprintf (stderr, ")\n");
	}
#endif
    }

  yyn += yychar1;
  if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != yychar1)
    YYGOTO(yydefault);

  yyn = yytable[yyn];

  /* yyn is what to do for this token type in this state.
     Negative => reduce, -yyn is rule number.
     Positive => shift, yyn is new state.
       New state is final state => don't bother to shift,
       just return success.
     0, or most negative number => error.  */

  if (yyn < 0)
    {
      if (yyn == YYFLAG)
	YYGOTO(yyerrlab);
      yyn = -yyn;
      YYGOTO(yyreduce);
    }
  else if (yyn == 0)
    YYGOTO(yyerrlab);

  if (yyn == YYFINAL)
    YYACCEPT;

  /* Shift the lookahead token.  */

#if YY_parse_DEBUG != 0
  if (YY_parse_DEBUG_FLAG)
    fprintf(stderr, "Shifting token %d (%s), ", YY_parse_CHAR, yytname[yychar1]);
#endif

  /* Discard the token being shifted unless it is eof.  */
  if (YY_parse_CHAR != YYEOF)
    YY_parse_CHAR = YYEMPTY;

  *++yyvsp = YY_parse_LVAL;
#ifdef YY_parse_LSP_NEEDED
  *++yylsp = YY_parse_LLOC;
#endif

  /* count tokens shifted since error; after three, turn off error status.  */
  if (yyerrstatus) yyerrstatus--;

  yystate = yyn;
  YYGOTO(yynewstate);

/* Do the default action for the current state.  */
YYLABEL(yydefault)

  yyn = yydefact[yystate];
  if (yyn == 0)
    YYGOTO(yyerrlab);

/* Do a reduction.  yyn is the number of a rule to reduce with.  */
YYLABEL(yyreduce)
  yylen = yyr2[yyn];
  if (yylen > 0)
    yyval = yyvsp[1-yylen]; /* implement default value of the action */

#if YY_parse_DEBUG != 0
  if (YY_parse_DEBUG_FLAG)
    {
      int i;

      fprintf (stderr, "Reducing via rule %d (line %d), ",
	       yyn, yyrline[yyn]);

      /* Print the symbols being reduced, and their result.  */
      for (i = yyprhs[yyn]; yyrhs[i] > 0; i++)
	fprintf (stderr, "%s ", yytname[yyrhs[i]]);
      fprintf (stderr, " -> %s\n", yytname[yyr1[yyn]]);
    }
#endif


 #line 839 "/usr/share/bison++/bison.cc"

  switch (yyn) {

case 4:
#line 76 "parse.ypp"
{	//std::cout << "Function:" << std::endl;
		app.dummy->name = *yyvsp[-4].stringVal;
		app.dummy->rtype = yyvsp[-5].integerVal;
		app.createTmpFunction();
		/*while(!arglist.empty())
		{
			std::cout << arglist.top() << std::endl;
			arglist.pop();
		}*/		

	;
    break;}
case 6:
#line 90 "parse.ypp"
{ /*cout << *$<stringVal>2 << endl;*/ ;
    break;}
case 7:
#line 91 "parse.ypp"
{ /*cout << *$<stringVal>2 << endl;*/ ;
    break;}
case 8:
#line 94 "parse.ypp"
{ yyval.integerVal = V_UINT8 ;
    break;}
case 9:
#line 95 "parse.ypp"
{ yyval.integerVal = V_UINT16 ;
    break;}
case 10:
#line 96 "parse.ypp"
{ yyval.integerVal = V_UINT32 ;
    break;}
case 11:
#line 97 "parse.ypp"
{ yyval.integerVal = V_UINT64 ;
    break;}
case 12:
#line 98 "parse.ypp"
{ yyval.integerVal = V_INT8 ;
    break;}
case 13:
#line 99 "parse.ypp"
{ yyval.integerVal = V_INT16 ;
    break;}
case 14:
#line 100 "parse.ypp"
{ yyval.integerVal = V_INT32 ;
    break;}
case 15:
#line 101 "parse.ypp"
{ yyval.integerVal = V_INT64 ;
    break;}
case 16:
#line 102 "parse.ypp"
{ yyval.integerVal = V_DOUBLE ;
    break;}
case 18:
#line 110 "parse.ypp"
{
		
		/*$<stringVal>$=$<stringVal>2;*/
	;
    break;}
case 21:
#line 123 "parse.ypp"
{ 
		yyval.ast = new AddVar(yyvsp[-2].ast, yyvsp[0].ast);
	;
    break;}
case 22:
#line 127 "parse.ypp"
{ 
		yyval.ast = new SubtractVar(yyvsp[-2].ast, yyvsp[0].ast);
	;
    break;}
case 23:
#line 131 "parse.ypp"
{ 
		yyval.ast = new DivideVar(yyvsp[-2].ast, yyvsp[0].ast);
	;
    break;}
case 24:
#line 135 "parse.ypp"
{ 
		yyval.ast = new MultiplyVar(yyvsp[-2].ast, yyvsp[0].ast);
	;
    break;}
case 25:
#line 139 "parse.ypp"
{ 
		yyval.ast = yyvsp[-1].ast; 
	;
    break;}
case 26:
#line 143 "parse.ypp"
{ 
		yyval.ast = yyvsp[-1].ast;
	;
    break;}
case 27:
#line 147 "parse.ypp"
{ 
		//std::cout << "c" << std::endl; 
		string name = vars.addconstant(V_INT32, yyvsp[-5].integerVal, yyvsp[-3].integerVal, yyvsp[-1].integerVal );
		yyval.ast = new ConstantVar(name);

	;
    break;}
case 28:
#line 154 "parse.ypp"
{ 
		string name = vars.addconstant(V_DOUBLE, yyvsp[-5].doubleVal, yyvsp[-3].doubleVal, yyvsp[-1].doubleVal );
		yyval.ast = new ConstantVar(name);
	;
    break;}
case 29:
#line 159 "parse.ypp"
{ 
		yyval.ast = new ConstantVar(*yyvsp[0].stringVal); 
	;
    break;}
case 30:
#line 163 "parse.ypp"
{ 
		string name = vars.addconstant(V_DOUBLE, yyvsp[0].doubleVal, yyvsp[0].doubleVal, yyvsp[0].doubleVal );
		yyval.ast = new ConstantVar(name); 
	;
    break;}
case 31:
#line 168 "parse.ypp"
{ 
		string name = vars.addconstant(V_INT32, yyvsp[0].integerVal, yyvsp[0].integerVal, yyvsp[0].integerVal );
		yyval.ast = new ConstantVar(name); 
	;
    break;}
case 32:
#line 175 "parse.ypp"
{
		Expression *t = app.dummy->statements;
		if(t == NULL)
		{
			app.dummy->statements = new AssignVar(*yyvsp[-5].stringVal, yyvsp[-3].integerVal, yyvsp[0].ast);
		}
		else
		{
			while(t->Sibling != NULL)
				t = t->Sibling;

			t->Sibling = new AssignVar(*yyvsp[-5].stringVal, yyvsp[-3].integerVal, yyvsp[0].ast);
		}
	;
    break;}
case 33:
#line 191 "parse.ypp"
{

		Expression *t = app.dummy->statements;

		if(t == NULL)
		{
			app.dummy->statements = new AssignVecVar(*yyvsp[-2].stringVal, yyvsp[0].ast);
		}
		else
		{
			while(t->Sibling != NULL)
				t = t->Sibling;

			t->Sibling = new AssignVecVar(*yyvsp[-2].stringVal, yyvsp[0].ast);
		}

	;
    break;}
case 34:
#line 210 "parse.ypp"
{
		cout <<"bulduk"<<endl;
		/*
		Expression *t = app.dummy->statements;

		if(t == NULL)
		{
			app.dummy->statements = new AssignVecVar(*$<stringVal>1, $<ast>3);
		}
		else
		{
			while(t->Sibling != NULL)
				t = t->Sibling;

			t->Sibling = new AssignVecVar(*$<stringVal>1, $<ast>3);
		}
		*/
	;
    break;}
case 35:
#line 230 "parse.ypp"
{

		if(vars.add(*yyvsp[0].stringVal, yyvsp[-1].integerVal))
		{

		}

	;
    break;}
case 36:
#line 240 "parse.ypp"
{

		if(vars.add(*yyvsp[-8].stringVal, yyvsp[-9].integerVal, yyvsp[-5].integerVal, yyvsp[-3].integerVal, yyvsp[-1].integerVal ))
		{

		}

	;
    break;}
case 37:
#line 250 "parse.ypp"
{

		if(vars.add(*yyvsp[-8].stringVal, yyvsp[-9].integerVal, yyvsp[-5].doubleVal, yyvsp[-3].doubleVal, yyvsp[-1].doubleVal ))
		{

		}

	;
    break;}
case 38:
#line 260 "parse.ypp"
{

		if(vars.addtmp(*yyvsp[-4].stringVal, yyvsp[-5].integerVal))
		{

		}

	;
    break;}
case 39:
#line 270 "parse.ypp"
{

		if(vars.addtmp(*yyvsp[-4].stringVal, yyvsp[-5].integerVal))
		{

		}

	;
    break;}
case 40:
#line 280 "parse.ypp"
{

		if(vars.addstring(*yyvsp[-4].stringVal, *yyvsp[-1].stringVal))
		{

		}

	;
    break;}
case 41:
#line 290 "parse.ypp"
{
		std::cout << "A zonefile name was encountered" << std::endl;
		
	;
    break;}
case 43:
#line 297 "parse.ypp"
{ vars.add2tmp(2,yyvsp[-1].integerVal); ;
    break;}
case 44:
#line 298 "parse.ypp"
{ vars.add2tmp(2,yyvsp[0].integerVal); ;
    break;}
case 46:
#line 302 "parse.ypp"
{ vars.add2tmp(8,yyvsp[-1].doubleVal); ;
    break;}
case 47:
#line 303 "parse.ypp"
{ vars.add2tmp(8,yyvsp[0].doubleVal); ;
    break;}
case 49:
#line 306 "parse.ypp"
{ vars.add2tmp(8,yyvsp[-1].doubleVal); ;
    break;}
case 50:
#line 307 "parse.ypp"
{ vars.add2tmp(8,yyvsp[0].doubleVal); ;
    break;}
}

#line 839 "/usr/share/bison++/bison.cc"
   /* the action file gets copied in in place of this dollarsign  */
  yyvsp -= yylen;
  yyssp -= yylen;
#ifdef YY_parse_LSP_NEEDED
  yylsp -= yylen;
#endif

#if YY_parse_DEBUG != 0
  if (YY_parse_DEBUG_FLAG)
    {
      short *ssp1 = yyss - 1;
      fprintf (stderr, "state stack now");
      while (ssp1 != yyssp)
	fprintf (stderr, " %d", *++ssp1);
      fprintf (stderr, "\n");
    }
#endif

  *++yyvsp = yyval;

#ifdef YY_parse_LSP_NEEDED
  yylsp++;
  if (yylen == 0)
    {
      yylsp->first_line = YY_parse_LLOC.first_line;
      yylsp->first_column = YY_parse_LLOC.first_column;
      yylsp->last_line = (yylsp-1)->last_line;
      yylsp->last_column = (yylsp-1)->last_column;
      yylsp->text = 0;
    }
  else
    {
      yylsp->last_line = (yylsp+yylen-1)->last_line;
      yylsp->last_column = (yylsp+yylen-1)->last_column;
    }
#endif

  /* Now "shift" the result of the reduction.
     Determine what state that goes to,
     based on the state we popped back to
     and the rule number reduced by.  */

  yyn = yyr1[yyn];

  yystate = yypgoto[yyn - YYNTBASE] + *yyssp;
  if (yystate >= 0 && yystate <= YYLAST && yycheck[yystate] == *yyssp)
    yystate = yytable[yystate];
  else
    yystate = yydefgoto[yyn - YYNTBASE];

  YYGOTO(yynewstate);

YYLABEL(yyerrlab)   /* here on detecting error */

  if (! yyerrstatus)
    /* If not already recovering from an error, report this error.  */
    {
      ++YY_parse_NERRS;

#ifdef YY_parse_ERROR_VERBOSE
      yyn = yypact[yystate];

      if (yyn > YYFLAG && yyn < YYLAST)
	{
	  int size = 0;
	  char *msg;
	  int x, count;

	  count = 0;
	  /* Start X at -yyn if nec to avoid negative indexes in yycheck.  */
	  for (x = (yyn < 0 ? -yyn : 0);
	       x < (sizeof(yytname) / sizeof(char *)); x++)
	    if (yycheck[x + yyn] == x)
	      size += strlen(yytname[x]) + 15, count++;
	  msg = (char *) malloc(size + 15);
	  if (msg != 0)
	    {
	      strcpy(msg, "parse error");

	      if (count < 5)
		{
		  count = 0;
		  for (x = (yyn < 0 ? -yyn : 0);
		       x < (sizeof(yytname) / sizeof(char *)); x++)
		    if (yycheck[x + yyn] == x)
		      {
			strcat(msg, count == 0 ? ", expecting `" : " or `");
			strcat(msg, yytname[x]);
			strcat(msg, "'");
			count++;
		      }
		}
	      YY_parse_ERROR(msg);
	      free(msg);
	    }
	  else
	    YY_parse_ERROR ("parse error; also virtual memory exceeded");
	}
      else
#endif /* YY_parse_ERROR_VERBOSE */
	YY_parse_ERROR("parse error");
    }

  YYGOTO(yyerrlab1);
YYLABEL(yyerrlab1)   /* here on error raised explicitly by an action */

  if (yyerrstatus == 3)
    {
      /* if just tried and failed to reuse lookahead token after an error, discard it.  */

      /* return failure if at end of input */
      if (YY_parse_CHAR == YYEOF)
	YYABORT;

#if YY_parse_DEBUG != 0
      if (YY_parse_DEBUG_FLAG)
	fprintf(stderr, "Discarding token %d (%s).\n", YY_parse_CHAR, yytname[yychar1]);
#endif

      YY_parse_CHAR = YYEMPTY;
    }

  /* Else will try to reuse lookahead token
     after shifting the error token.  */

  yyerrstatus = 3;              /* Each real token shifted decrements this */

  YYGOTO(yyerrhandle);

YYLABEL(yyerrdefault)  /* current state does not do anything special for the error token. */

#if 0
  /* This is wrong; only states that explicitly want error tokens
     should shift them.  */
  yyn = yydefact[yystate];  /* If its default is to accept any token, ok.  Otherwise pop it.*/
  if (yyn) YYGOTO(yydefault);
#endif

YYLABEL(yyerrpop)   /* pop the current state because it cannot handle the error token */

  if (yyssp == yyss) YYABORT;
  yyvsp--;
  yystate = *--yyssp;
#ifdef YY_parse_LSP_NEEDED
  yylsp--;
#endif

#if YY_parse_DEBUG != 0
  if (YY_parse_DEBUG_FLAG)
    {
      short *ssp1 = yyss - 1;
      fprintf (stderr, "Error: state stack now");
      while (ssp1 != yyssp)
	fprintf (stderr, " %d", *++ssp1);
      fprintf (stderr, "\n");
    }
#endif

YYLABEL(yyerrhandle)

  yyn = yypact[yystate];
  if (yyn == YYFLAG)
    YYGOTO(yyerrdefault);

  yyn += YYTERROR;
  if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != YYTERROR)
    YYGOTO(yyerrdefault);

  yyn = yytable[yyn];
  if (yyn < 0)
    {
      if (yyn == YYFLAG)
	YYGOTO(yyerrpop);
      yyn = -yyn;
      YYGOTO(yyreduce);
    }
  else if (yyn == 0)
    YYGOTO(yyerrpop);

  if (yyn == YYFINAL)
    YYACCEPT;

#if YY_parse_DEBUG != 0
  if (YY_parse_DEBUG_FLAG)
    fprintf(stderr, "Shifting error token, ");
#endif

  *++yyvsp = YY_parse_LVAL;
#ifdef YY_parse_LSP_NEEDED
  *++yylsp = YY_parse_LLOC;
#endif

  yystate = yyn;
  YYGOTO(yynewstate);
/* end loop, in which YYGOTO may be used. */
  YYENDGOTO
}

/* END */

 #line 1038 "/usr/share/bison++/bison.cc"
#line 309 "parse.ypp"

int fatalerror=0;
Expression * exprp;
void fatal(char *s){ fatalerror++; cerr<<s << "\n"; }

int yyerror(char *s){  cerr << "Error:" << line_count << ": " << s << "\n"; }
VarList vars;
Program app;
int line_count = 1;

int main() 
{
	cout<<"msl Interpreter (.001a)\n\n";
	app.createTmpFunction();
	yyparse();
	vars.listvars();
	app.listFunctions();
}

